<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        img{
            position:relative;
            left: 0;
            top: 0;
        }
    </style>
</head>
<body>
    <img src="./angel.gif" alt="">
</body>
</html>
<script>
    var img=document.querySelector("img")
    document.addEventListener('mousemove',function(e){
        img.style.left=e.clientX -35+'px'
        img.style.top=e.clientY -60+'px'
    })
</script>